package com.study.example.gameserver.module.buff.effect;

import com.sparrow.common.buff.domain.Buff;
import com.sparrow.common.buff.effect.AbstractBuffEffect;
import com.sparrow.common.buff.effect.anno.BuffEffect;
import com.study.example.gameserver.module.player.entity.Player;

@BuffEffect("AddAttack")
public class AddAttackBuffEffect extends AbstractBuffEffect {
    @Override
    public void onStart(Buff buff) {
        Player player = getTarget(buff);
        System.out.println(player.getPlayerName() + " 添加攻击力加成buff");
    }

    @Override
    public void onExpire(Buff buff) {
        Player player = getTarget(buff);
        System.out.println(player.getPlayerName() + " 移除攻击力加成buff");
    }
}
